
const path=require("path");
module.exports = {
  
  productionSourceMap: false,//js中不生成map文件
  //outputDir:"dist",//打包输出目录
  publicPath:'',
  outputDir:process.env.outputDir,
  devServer: {
    port: 8085,//端口
    proxy: {
      '/mywebapi': {
            target: 'http://localhost:38475',
            pathRewrite: {'^/mywebapi' : ''}
        },
        '/api': {
          target: 'http://localhost:38475',
          pathRewrite: {'^/mywebapi' : ''}
      },
    }
},

  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        path.resolve(__dirname, './src/assets/styles/variables.less')
      ]
    }
  }
}
